﻿using GWB.Application.System.RoleManage.Dtos;
using GWB.Core;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace GWB.Application.System.RoleManage.RoleService
{
    /// <summary>
    /// 角色管理
    /// </summary>
    public interface IRoleService
    {
        /// <summary>
        ///新增
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<Result<RoleOutDto>> Add(RoleCreateOrUpdateInputDto inputDto);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<bool> Update(RoleCreateOrUpdateInputDto inputDto);



        /// <summary>
        /// 删除菜单
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<bool> Delete(List<long> ids);


        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<PageResult<RoleOutDto>> Page(RolePageInputDto inputDto);

       
        /// <summary>
        /// 编辑角色菜单
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<bool> EditRoleMenu(RoleMenuEditInputDto inputDto);

        /// <summary>
        /// 获取角色的菜单
        /// </summary>
        /// <param name="roelId"></param>
        /// <returns></returns>
        Task<List<RoletMenuOutDto>> GetRoleMenus(long roelId);
    }
}
